﻿create PROCEDURE Sync.SP_Roles_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[RoleID],
		g.[RoleName],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[Roles] g RIGHT JOIN Sync.Roles_Tracking t  
    ON t.RoleID = g.RoleID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END














